<?php
require_once('Kbs/Model/Mapper/Abstract.php');

class Kbs_Model_Mapper_Locale extends Kbs_Model_Mapper_Abstract
{
    protected $_tableClassName = 'Kbs_Model_Table_Locale';

    protected $_dataMapper = array(
        'localeId'          => 'locale_id',
        'localeName'        => 'locale_name',
        'localeTitle'       => 'locale_title',
        'localeDefault'     => 'locale_default',
    );

    public function setData(Kbs_Model_Business_Abstract $businessObj, Zend_Db_Table_Row $row)
    {
        $businessObj->setLocaleId($row->locale_id)
                    ->setLocaleName($row->locale_name)
                    ->setLocaleTitle($row->locale_title)
                    ->setLocaleDefault($row->locale_default);
    }
}